package com.liuc.mybatis;


import java.util.concurrent.Callable;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.FutureTask;

class  CallebleImpl implements Callable<Integer>{

    @Override
    public Integer call() throws Exception {
        return 1024;
    }
}
public class CallebleDemo extends  Thread {

    public static void main(String[] args) throws ExecutionException, InterruptedException {
       CallebleDemo callebleDemo = new CallebleDemo();
       callebleDemo.start();
    }


}
